package com.sinosun.autotestmachine.tools.Collector;

import java.util.ArrayList;
import java.util.List;

import com.sinosun.mstplib.message.Message;

public class MsgListenerCollector extends BaseCollector {
	private List<Message> mapKey;
	
	public MsgListenerCollector() {
		super();
		mapKey = new ArrayList<Message>();
	}
	
	public List<Message> getMapKey() {
		return this.mapKey;
	}
	
	public void addKeyIntoList(Message msgID) {
		this.mapKey.add(msgID);
	}
	
	public void removeKeyFromList(Message msgID) {
		this.mapKey.remove(msgID);
	}
	
	public boolean containKey(String msgID) {
		return this.mapKey.contains(msgID);
	}
}
